| Einhugur Serialization Framework for Xojo |
|
JSONSerializerII.Serialize Method
Serialize's a class structure
Serialize(
item as Object,
rootName as String) as EinhugurJSON.JSONObject
Parameters
- item
- The item to be serialized
- rootName
- Name of the root.
Returns
- EinhugurJSON.JSONObject
- Returns EinhugurJSON.JSONObject with the serialized class structure.
Remarks
All classes that are serialized must have a default constructor that has no parameters.
// Serialize our data
// ------------------------------------------------------------------
Dim s as JSONSerializationII.JSONSerializerII = new JSONSerializationII.JSONSerializerII()
Dim jsonDoc as EinhugurJSON.JSONObject = s.Serialize(facility1,"Facility")
// ------------------------------------------------------------------
See Also
JSONSerializerII Class